// by Xeno

private ["_ok","_vehicle"];

D_CLICKED_POS = [];
onMapSingleClick "openMap false; hint Format['Pos: %1',_pos]; D_CLICKED_POS = _pos; true;";
openMap true;
waituntil { sleep 1.2345; (!visibleMap) };
// waituntil { sleep 1.2345; (!shownMap || !dialog || !visibleMap) };
onMapSingleClick "";

if (count D_CLICKED_POS > 0) then {
	player setPos D_CLICKED_POS;
};